home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-02-20 | 4.9 KB | [ TEXT/KAHL]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sun Feb 20 18:31:08 1994, modified Sun Feb 20 18:31:08 1994, creator Think C, type ASCII, 4023 bytes "SkelApple.c" , at 0x1037 736 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ KAHL]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0b 53 6b 65 6c 41 70 | 70 6c 65 2e 63 00 00 00 |..SkelAp|ple.c...| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......| |00000050| 00 00 00 00 00 0f b7 00 | 00 02 e0 a9 8d a3 3c a9 |........|......<.| |00000060| 8d a3 3c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..<.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cd 63 00 00 |........|.....c..| |00000080| 2f 2a 0d 20 2a 20 53 6b | 65 6c 41 70 70 6c 65 2e |/*. * Sk|elApple.| |00000090| 63 20 2d 20 54 72 61 6e | 73 53 6b 65 6c 20 33 2e |c - Tran|sSkel 3.| |000000a0| 30 20 41 70 70 6c 65 20 | 6d 65 6e 75 20 68 61 6e |0 Apple |menu han| |000000b0| 64 6c 65 72 0d 20 2a 2f | 0d 0d 23 20 69 6e 63 6c |dler. */|..# incl| |000000c0| 75 64 65 09 22 54 72 61 | 6e 73 53 6b 65 6c 2e 68 |ude."Tra|nsSkel.h| |000000d0| 22 0d 0d 0d 2f 2a 0d 20 | 2a 20 44 65 66 61 75 6c |".../*. |* Defaul| |000000e0| 74 20 41 70 70 6c 65 20 | 6d 65 6e 75 20 68 61 6e |t Apple |menu han| |000000f0| 64 6c 65 72 20 73 75 70 | 70 6f 72 74 20 76 61 72 |dler sup|port var| |00000100| 69 61 62 6c 65 73 0d 20 | 2a 0d 20 2a 20 61 70 70 |iables. |*. * app| |00000110| 6c 65 49 44 20 69 73 20 | 73 65 74 20 74 6f 20 73 |leID is |set to s| |00000120| 6b 65 6c 41 70 70 6c 65 | 4d 65 6e 75 49 44 20 69 |kelApple|MenuID i| |00000130| 66 20 53 6b 65 6c 41 70 | 70 6c 65 28 29 20 69 73 |f SkelAp|ple() is| |00000140| 20 63 61 6c 6c 65 64 20 | 61 6e 64 0d 20 2a 20 62 | called |and. * b| |00000150| 65 63 6f 6d 65 73 20 74 | 68 65 20 69 64 20 6f 66 |ecomes t|he id of| |00000160| 20 74 68 65 20 41 70 70 | 6c 65 20 6d 65 6e 75 2e | the App|le menu.| |00000170| 0d 20 2a 0d 20 2a 20 61 | 70 70 6c 65 53 65 6c 65 |. *. * a|ppleSele| |00000180| 63 74 20 69 73 20 74 68 | 65 20 70 72 6f 63 65 64 |ct is th|e proced| |00000190| 75 72 65 20 74 6f 20 65 | 78 65 63 75 74 65 20 69 |ure to e|xecute i| |000001a0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 6e 6f 6e |f there |is a non| |000001b0| 2d 44 41 0d 20 2a 20 73 | 65 6c 65 63 74 69 6f 6e |-DA. * s|election| |000001c0| 20 66 72 6f 6d 20 74 68 | 65 20 41 70 70 6c 65 20 | from th|e Apple | |000001d0| 6d 65 6e 75 2e 0d 20 2a | 0d 20 2a 20 61 70 70 6c |menu.. *|. * appl| |000001e0| 65 41 70 70 6c 49 74 65 | 6d 73 20 69 73 20 74 72 |eApplIte|ms is tr| |000001f0| 75 65 20 69 66 20 74 68 | 65 20 61 70 70 6c 69 63 |ue if th|e applic| |00000200| 61 74 69 6f 6e 20 69 6e | 73 74 61 6c 6c 73 20 6f |ation in|stalls o| |00000210| 6e 65 20 6f 72 20 6d 6f | 72 65 0d 20 2a 20 69 74 |ne or mo|re. * it| |00000220| 65 6d 73 20 6f 66 20 69 | 74 73 20 6f 77 6e 20 61 |ems of i|ts own a| |00000230| 74 20 74 68 65 20 74 6f | 70 20 6f 66 20 74 68 65 |t the to|p of the| |00000240| 20 41 70 70 6c 65 20 6d | 65 6e 75 2e 0d 20 2a 2f | Apple m|enu.. */| |00000250| 0d 0d 73 74 61 74 69 63 | 20 4d 65 6e 75 48 61 6e |..static| MenuHan| |00000260| 64 6c 65 09 61 70 70 6c | 65 4d 65 6e 75 3b 0d 73 |dle.appl|eMenu;.s| |00000270| 74 61 74 69 63 20 73 68 | 6f 72 74 09 09 61 70 70 |tatic sh|ort..app| |00000280| 6c 65 49 44 20 3d 20 30 | 3b 0d 73 74 61 74 69 63 |leID = 0|;.static| |00000290| 20 53 6b 65 6c 4d 65 6e | 75 53 65 6c 65 63 74 50 | SkelMen|uSelectP| |000002a0| 72 6f 63 50 74 72 20 61 | 70 70 6c 65 53 65 6c 65 |rocPtr a|ppleSele| |000002b0| 63 74 20 3d 20 6e 69 6c | 3b 0d 73 74 61 74 69 63 |ct = nil|;.static| |000002c0| 20 42 6f 6f 6c 65 61 6e | 09 09 61 70 70 6c 65 41 | Boolean|..appleA| |000002d0| 70 70 6c 49 74 65 6d 73 | 20 3d 20 66 61 6c 73 65 |pplItems| = false| |000002e0| 3b 0d 0d 0d 2f 2a 0d 20 | 2a 20 41 70 70 6c 65 20 |;.../*. |* Apple | |000002f0| 6d 65 6e 75 20 68 61 6e | 64 6c 65 72 20 72 6f 75 |menu han|dler rou| |00000300| 74 69 6e 65 73 0d 20 2a | 0d 20 2a 20 49 66 20 74 |tines. *|. * If t| |00000310| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |he appli|cation i| |00000320| 6e 73 74 61 6c 6c 65 64 | 20 69 74 73 20 6f 77 6e |nstalled| its own| |00000330| 20 69 74 65 6d 73 20 69 | 6e 74 6f 20 74 68 65 20 | items i|nto the | |00000340| 6d 65 6e 75 20 61 6e 64 | 20 74 68 65 0d 20 2a 20 |menu and| the. * | |00000350| 73 65 6c 65 63 74 69 6f | 6e 20 77 61 73 20 6f 6e |selectio|n was on| |00000360| 65 20 6f 66 20 74 68 65 | 6d 2c 20 70 61 73 73 20 |e of the|m, pass | |00000370| 74 68 65 20 69 74 65 6d | 20 6e 75 6d 62 65 72 20 |the item| number | |00000380| 74 6f 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |to the s|election| |00000390| 0d 20 2a 20 70 72 6f 63 | 65 64 75 72 65 2e 20 20 |. * proc|edure. | |000003a0| 4f 74 68 65 72 77 69 73 | 65 20 74 68 65 20 69 74 |Otherwis|e the it| |000003b0| 65 6d 20 69 73 20 61 20 | 64 65 73 6b 20 61 63 63 |em is a |desk acc| |000003c0| 65 73 73 6f 72 79 2e 20 | 54 68 65 20 70 6f 72 74 |essory. |The port| |000003d0| 20 69 73 0d 20 2a 20 73 | 61 76 65 64 20 61 6e 64 | is. * s|aved and| |000003e0| 20 72 65 73 74 6f 72 65 | 64 20 62 65 63 61 75 73 | restore|d becaus| |000003f0| 65 20 69 74 20 69 73 20 | 6e 6f 74 20 61 6c 77 61 |e it is |not alwa| |00000400| 79 73 20 70 72 65 73 65 | 72 76 65 64 20 63 6f 72 |ys prese|rved cor| |00000410| 72 65 63 74 6c 79 0d 20 | 2a 20 61 63 72 6f 73 73 |rectly. |* across| |00000420| 20 74 68 65 20 63 61 6c | 6c 20 74 6f 20 4f 70 65 | the cal|l to Ope| |00000430| 6e 44 65 73 6b 41 63 63 | 28 29 20 28 49 4d 20 49 |nDeskAcc|() (IM I| |00000440| 2d 34 34 30 29 2e 0d 20 | 2a 0d 20 2a 20 44 6f 41 |-440).. |*. * DoA| |00000450| 70 70 6c 65 43 6c 6f 62 | 62 65 72 28 29 20 64 69 |ppleClob|ber() di| |00000460| 73 70 6f 73 65 73 20 6f | 66 20 74 68 65 20 41 70 |sposes o|f the Ap| |00000470| 70 6c 65 20 6d 65 6e 75 | 20 61 6e 64 20 72 65 73 |ple menu| and res| |00000480| 65 74 73 20 74 68 65 20 | 6f 74 68 65 72 0d 20 2a |ets the |other. *| |00000490| 20 41 70 70 6c 65 20 6d | 65 6e 75 20 68 61 6e 64 | Apple m|enu hand| |000004a0| 6c 65 72 20 76 61 72 69 | 61 62 6c 65 73 2e 0d 20 |ler vari|ables.. | |000004b0| 2a 2f 0d 0d 0d 73 74 61 | 74 69 63 20 70 61 73 63 |*/...sta|tic pasc| |000004c0| 61 6c 20 76 6f 69 64 0d | 44 6f 41 70 70 6c 65 49 |al void.|DoAppleI| |000004d0| 74 65 6d 20 28 73 68 6f | 72 74 20 69 74 65 6d 29 |tem (sho|rt item)| |000004e0| 0d 7b 0d 47 72 61 66 50 | 74 72 09 63 75 72 50 6f |.{.GrafP|tr.curPo| |000004f0| 72 74 3b 0d 53 74 72 32 | 35 35 09 73 74 72 3b 0d |rt;.Str2|55.str;.| |00000500| 48 61 6e 64 6c 65 09 68 | 3b 0d 73 68 6f 72 74 09 |Handle.h|;.short.| |00000510| 69 3b 0d 0d 09 2f 2a 0d | 09 20 2a 20 49 66 20 74 |i;.../*.|. * If t| |00000520| 68 65 72 65 20 61 72 65 | 20 61 70 70 6c 69 63 61 |here are| applica| |00000530| 74 69 6f 6e 20 69 74 65 | 6d 73 2c 20 64 65 74 65 |tion ite|ms, dete| |00000540| 72 6d 69 6e 65 20 69 66 | 20 69 74 65 6d 20 69 73 |rmine if| item is| |00000550| 20 6f 6e 65 20 6f 66 20 | 74 68 65 6d 2e 0d 09 20 | one of |them... | |00000560| 2a 20 43 61 6e 20 74 65 | 6c 6c 20 62 79 20 74 72 |* Can te|ll by tr| |00000570| 61 63 6b 69 6e 67 20 62 | 61 63 6b 77 61 72 64 20 |acking b|ackward | |00000580| 74 68 72 6f 75 67 68 20 | 74 68 65 20 69 74 65 6d |through |the item| |00000590| 73 3b 20 69 66 20 74 68 | 65 20 67 72 61 79 20 6c |s; if th|e gray l| |000005a0| 69 6e 65 0d 09 20 2a 20 | 73 65 70 61 72 61 74 69 |ine.. * |separati| |000005b0| 6e 67 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |ng appli|cation i| |000005c0| 74 65 6d 73 20 61 6e 64 | 20 44 41 27 73 20 69 66 |tems and| DA's if| |000005d0| 20 6e 6f 74 20 66 6f 75 | 6e 64 20 62 65 66 6f 72 | not fou|nd befor| |000005e0| 65 20 74 6f 70 20 6f 66 | 0d 09 20 2a 20 6d 65 6e |e top of|.. * men| |000005f0| 75 20 69 73 20 72 65 61 | 63 68 65 64 2c 20 74 68 |u is rea|ched, th| |00000600| 65 6e 20 69 74 73 20 61 | 6e 20 61 70 70 6c 69 63 |en its a|n applic| |00000610| 61 74 69 6f 6e 20 69 74 | 65 6d 2c 20 65 6c 73 65 |ation it|em, else| |00000620| 20 61 20 44 41 2e 20 20 | 54 68 69 73 0d 09 20 2a | a DA. |This.. *| |00000630| 20 73 74 72 61 74 65 67 | 79 20 72 65 71 75 69 72 | strateg|y requir| |00000640| 65 73 20 74 68 61 74 20 | 74 68 65 72 65 20 62 65 |es that |there be| |00000650| 20 6e 6f 20 22 2d 22 20 | 69 74 65 6d 73 20 69 6e | no "-" |items in| |00000660| 20 74 68 65 20 69 74 65 | 6d 73 20 73 74 72 69 6e | the ite|ms strin| |00000670| 67 0d 09 20 2a 20 70 61 | 73 73 65 64 20 74 6f 20 |g.. * pa|ssed to | |00000680| 53 6b 65 6c 41 70 70 6c | 65 28 29 2e 0d 09 20 2a |SkelAppl|e()... *| |00000690| 2f 0d 09 69 66 20 28 61 | 70 70 6c 65 41 70 70 6c |/..if (a|ppleAppl| |000006a0| 49 74 65 6d 73 29 0d 09 | 7b 0d 09 09 66 6f 72 20 |Items)..|{...for | |000006b0| 28 69 20 3d 20 69 74 65 | 6d 3b 20 69 20 3e 20 30 |(i = ite|m; i > 0| |000006c0| 3b 20 69 2d 2d 29 09 2f | 2a 20 6c 6f 6f 6b 20 66 |; i--)./|* look f| |000006d0| 72 6f 6d 20 63 75 72 72 | 65 6e 74 20 74 6f 20 69 |rom curr|ent to i| |000006e0| 74 65 6d 20 31 20 2a 2f | 0d 09 09 7b 0d 09 09 09 |tem 1 */|...{....| |000006f0| 47 65 74 49 74 65 6d 20 | 28 61 70 70 6c 65 4d 65 |GetItem |(appleMe| |00000700| 6e 75 2c 20 69 2c 20 73 | 74 72 29 3b 0d 09 09 09 |nu, i, s|tr);....| |00000710| 69 66 20 28 73 74 72 5b | 30 5d 20 3d 3d 20 31 20 |if (str[|0] == 1 | |00000720| 26 26 20 73 74 72 5b 31 | 5d 20 3d 3d 20 27 2d 27 |&& str[1|] == '-'| |00000730| 29 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 7d |).....br|eak;...}| |00000740| 0d 09 09 69 66 20 28 69 | 20 3d 3d 20 30 29 09 09 |...if (i| == 0)..| |00000750| 09 09 09 2f 2a 20 72 65 | 61 63 68 65 64 20 74 6f |.../* re|ached to| |00000760| 70 20 77 69 74 68 6f 75 | 74 20 73 65 65 69 6e 67 |p withou|t seeing| |00000770| 20 6c 69 6e 65 20 2a 2f | 0d 09 09 7b 0d 09 09 09 | line */|...{....| |00000780| 69 66 20 28 61 70 70 6c | 65 53 65 6c 65 63 74 20 |if (appl|eSelect | |00000790| 21 3d 20 6e 69 6c 29 09 | 2f 2a 20 63 61 6c 6c 20 |!= nil).|/* call | |000007a0| 73 65 6c 65 63 74 20 70 | 72 6f 63 20 69 66 20 74 |select p|roc if t| |000007b0| 68 65 72 65 20 69 73 20 | 6f 6e 65 20 2a 2f 0d 09 |here is |one */..| |000007c0| 09 09 09 28 2a 61 70 70 | 6c 65 53 65 6c 65 63 74 |...(*app|leSelect| |000007d0| 29 20 28 69 74 65 6d 29 | 3b 0d 09 09 09 72 65 74 |) (item)|;....ret| |000007e0| 75 72 6e 3b 0d 09 09 7d | 0d 09 7d 0d 0d 09 2f 2a |urn;...}|..}.../*| |000007f0| 20 65 69 74 68 65 72 20 | 6e 6f 20 61 70 70 6c 69 | either |no appli| |00000800| 63 61 74 69 6f 6e 20 69 | 74 65 6d 73 20 6f 72 20 |cation i|tems or | |00000810| 73 65 6c 65 63 74 69 6f | 6e 20 69 73 6e 27 74 20 |selectio|n isn't | |00000820| 6f 6e 65 20 6f 66 20 74 | 68 65 6d 20 2a 2f 0d 09 |one of t|hem */..| |00000830| 47 65 74 50 6f 72 74 20 | 28 26 63 75 72 50 6f 72 |GetPort |(&curPor| |00000840| 74 29 3b 0d 09 47 65 74 | 49 74 65 6d 20 28 61 70 |t);..Get|Item (ap| |00000850| 70 6c 65 4d 65 6e 75 2c | 20 69 74 65 6d 2c 20 73 |pleMenu,| item, s| |00000860| 74 72 29 3b 09 09 09 2f | 2a 20 67 65 74 20 44 41 |tr);.../|* get DA| |00000870| 20 6e 61 6d 65 20 2a 2f | 0d 09 53 65 74 52 65 73 | name */|..SetRes| |00000880| 4c 6f 61 64 20 28 66 61 | 6c 73 65 29 3b 0d 09 68 |Load (fa|lse);..h| |00000890| 20 3d 20 47 65 74 4e 61 | 6d 65 64 52 65 73 6f 75 | = GetNa|medResou| |000008a0| 72 63 65 20 28 27 44 52 | 56 52 27 2c 20 73 74 72 |rce ('DR|VR', str| |000008b0| 29 3b 0d 09 53 65 74 52 | 65 73 4c 6f 61 64 20 28 |);..SetR|esLoad (| |000008c0| 74 72 75 65 29 3b 0d 09 | 69 66 20 28 68 20 21 3d |true);..|if (h !=| |000008d0| 20 28 48 61 6e 64 6c 65 | 29 20 6e 69 6c 29 0d 09 | (Handle|) nil)..| |000008e0| 7b 0d 09 09 52 65 73 72 | 76 4d 65 6d 20 28 53 69 |{...Resr|vMem (Si| |000008f0| 7a 65 52 65 73 6f 75 72 | 63 65 20 28 68 29 20 2b |zeResour|ce (h) +| |00000900| 20 30 78 31 30 30 30 29 | 3b 0d 09 09 28 76 6f 69 | 0x1000)|;...(voi| |00000910| 64 29 20 4f 70 65 6e 44 | 65 73 6b 41 63 63 20 28 |d) OpenD|eskAcc (| |00000920| 73 74 72 29 3b 09 09 09 | 2f 2a 20 6f 70 65 6e 20 |str);...|/* open | |00000930| 69 74 20 2a 2f 0d 09 7d | 0d 09 53 65 74 50 6f 72 |it */..}|..SetPor| |00000940| 74 20 28 63 75 72 50 6f | 72 74 29 3b 0d 7d 0d 0d |t (curPo|rt);.}..| |00000950| 0d 73 74 61 74 69 63 20 | 70 61 73 63 61 6c 20 76 |.static |pascal v| |00000960| 6f 69 64 0d 44 6f 41 70 | 70 6c 65 43 6c 6f 62 62 |oid.DoAp|pleClobb| |00000970| 65 72 20 28 4d 65 6e 75 | 48 61 6e 64 6c 65 20 6d |er (Menu|Handle m| |00000980| 65 6e 75 29 0d 7b 0d 09 | 44 69 73 70 6f 73 65 4d |enu).{..|DisposeM| |00000990| 65 6e 75 20 28 6d 65 6e | 75 29 3b 09 09 2f 2a 20 |enu (men|u);../* | |000009a0| 6d 65 6e 75 20 77 69 6c | 6c 20 62 65 20 3d 3d 20 |menu wil|l be == | |000009b0| 61 70 70 6c 65 4d 65 6e | 75 20 68 65 72 65 20 2a |appleMen|u here *| |000009c0| 2f 0d 09 61 70 70 6c 65 | 49 44 20 3d 20 30 3b 0d |/..apple|ID = 0;.| |000009d0| 09 61 70 70 6c 65 41 70 | 70 6c 49 74 65 6d 73 20 |.appleAp|plItems | |000009e0| 3d 20 66 61 6c 73 65 3b | 0d 09 61 70 70 6c 65 53 |= false;|..appleS| |000009f0| 65 6c 65 63 74 20 3d 20 | 6e 69 6c 3b 0d 7d 0d 0d |elect = |nil;.}..| |00000a00| 0d 2f 2a 0d 20 2a 20 49 | 6e 73 74 61 6c 6c 20 61 |./*. * I|nstall a| |00000a10| 20 68 61 6e 64 6c 65 72 | 20 66 6f 72 20 74 68 65 | handler| for the| |00000a20| 20 41 70 70 6c 65 20 6d | 65 6e 75 2e 0d 20 2a 0d | Apple m|enu.. *.| |00000a30| 20 2a 20 53 6b 65 6c 41 | 70 70 6c 65 28 29 20 69 | * SkelA|pple() i| |00000a40| 73 20 63 61 6c 6c 65 64 | 20 69 66 20 54 72 61 6e |s called| if Tran| |00000a50| 73 53 6b 65 6c 20 69 73 | 20 73 75 70 70 6f 73 65 |sSkel is| suppose| |00000a60| 64 20 74 6f 20 68 61 6e | 64 6c 65 20 74 68 65 20 |d to han|dle the | |00000a70| 61 70 70 6c 65 0d 20 2a | 20 6d 65 6e 75 20 69 74 |apple. *| menu it| |00000a80| 73 65 6c 66 2e 0d 20 2a | 0d 20 2a 20 69 74 65 6d |self.. *|. * item| |00000a90| 73 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 74 |s contai|ns the t| |00000aa0| 69 74 6c 65 20 6f 66 20 | 61 6e 79 20 69 74 65 6d |itle of |any item| |00000ab0| 73 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |s the ap|plicatio| |00000ac0| 6e 0d 20 2a 20 77 61 6e | 74 73 20 74 6f 20 69 6e |n. * wan|ts to in| |00000ad0| 73 74 61 6c 6c 20 61 74 | 20 74 68 65 20 74 6f 70 |stall at| the top| |00000ae0| 20 6f 66 20 74 68 65 20 | 6d 65 6e 75 2e 20 20 49 | of the |menu. I| |00000af0| 66 20 69 74 65 6d 73 20 | 69 73 20 65 6d 70 74 79 |f items |is empty| |00000b00| 20 6f 72 20 6e 69 6c 2c | 20 74 68 65 6e 0d 20 2a | or nil,| then. *| |00000b10| 20 6f 6e 6c 79 20 64 65 | 73 6b 20 61 63 63 65 73 | only de|sk acces| |00000b20| 73 6f 72 69 65 73 20 61 | 72 65 20 70 75 74 20 69 |sories a|re put i| |00000b30| 6e 74 6f 20 74 68 65 20 | 6d 65 6e 75 2e 20 20 49 |nto the |menu. I| |00000b40| 66 20 6e 6f 74 20 65 6d | 70 74 79 2c 20 74 68 65 |f not em|pty, the| |00000b50| 6e 20 74 68 65 20 69 74 | 65 6d 73 0d 20 2a 20 61 |n the it|ems. * a| |00000b60| 72 65 20 69 6e 73 74 61 | 6c 6c 65 64 20 61 74 20 |re insta|lled at | |00000b70| 74 68 65 20 74 6f 70 2c | 20 66 6f 6c 6c 6f 77 65 |the top,| followe| |00000b80| 64 20 62 79 20 61 20 67 | 72 61 79 20 6c 69 6e 65 |d by a g|ray line| |00000b90| 2c 20 74 68 65 6e 20 74 | 68 65 20 64 65 73 6b 0d |, then t|he desk.| |00000ba0| 20 2a 20 61 63 63 65 73 | 73 6f 72 69 65 73 2e 0d | * acces|sories..| |00000bb0| 20 2a 0d 20 2a 20 64 6f | 53 65 6c 65 63 74 20 69 | *. * do|Select i| |00000bc0| 73 20 74 68 65 20 70 72 | 6f 63 65 64 75 72 65 20 |s the pr|ocedure | |00000bd0| 74 6f 20 62 65 20 63 61 | 6c 6c 65 64 20 77 68 65 |to be ca|lled whe| |00000be0| 6e 20 61 20 6e 6f 6e 2d | 44 41 20 73 65 6c 65 63 |n a non-|DA selec| |00000bf0| 74 69 6f 6e 20 69 73 0d | 20 2a 20 6d 61 64 65 20 |tion is.| * made | |00000c00| 61 6e 64 20 69 73 20 70 | 61 73 73 65 64 20 74 68 |and is p|assed th| |00000c10| 65 20 69 74 65 6d 20 6e | 75 6d 62 65 72 2e 20 20 |e item n|umber. | |00000c20| 49 66 20 64 6f 53 65 6c | 65 63 74 20 69 73 20 6e |If doSel|ect is n| |00000c30| 69 6c 2c 20 74 68 65 20 | 73 65 6c 65 63 74 69 6f |il, the |selectio| |00000c40| 6e 0d 20 2a 20 69 73 20 | 69 67 6e 6f 72 65 64 2e |n. * is |ignored.| |00000c50| 0d 20 2a 0d 20 2a 20 53 | 6b 65 6c 41 70 70 6c 65 |. *. * S|kelApple| |00000c60| 28 29 20 64 6f 65 73 20 | 6e 6f 74 20 63 61 75 73 |() does |not caus| |00000c70| 65 20 74 68 65 20 6d 65 | 6e 75 62 61 72 20 74 6f |e the me|nubar to| |00000c80| 20 62 65 20 64 72 61 77 | 6e 2c 20 73 6f 20 69 66 | be draw|n, so if| |00000c90| 20 74 68 65 20 41 70 70 | 6c 65 0d 20 2a 20 6d 65 | the App|le. * me| |00000ca0| 6e 75 20 69 73 20 74 68 | 65 20 6f 6e 6c 79 20 6d |nu is th|e only m| |00000cb0| 65 6e 75 2c 20 44 72 61 | 77 4d 65 6e 75 42 61 72 |enu, Dra|wMenuBar| |00000cc0| 28 29 20 6d 75 73 74 20 | 62 65 20 63 61 6c 6c 65 |() must |be calle| |00000cd0| 64 20 61 66 74 65 72 77 | 61 72 64 2e 0d 20 2a 0d |d afterw|ard.. *.| |00000ce0| 20 2a 20 4e 6f 20 76 61 | 6c 75 65 20 69 73 20 72 | * No va|lue is r| |00000cf0| 65 74 75 72 6e 65 64 2c | 20 75 6e 6c 69 6b 65 20 |eturned,| unlike | |00000d00| 53 6b 65 6c 4d 65 6e 75 | 28 29 2e 20 20 49 74 20 |SkelMenu|(). It | |00000d10| 69 73 20 61 73 73 75 6d | 65 64 20 74 68 61 74 0d |is assum|ed that.| |00000d20| 20 2a 20 53 6b 65 6c 41 | 70 70 6c 65 28 29 20 77 | * SkelA|pple() w| |00000d30| 69 6c 6c 20 62 65 20 63 | 61 6c 6c 65 64 20 73 6f |ill be c|alled so| |00000d40| 20 65 61 72 6c 79 20 69 | 6e 20 74 68 65 20 61 70 | early i|n the ap| |00000d50| 70 6c 69 63 61 74 69 6f | 6e 20 74 68 61 74 20 74 |plicatio|n that t| |00000d60| 68 65 20 63 61 6c 6c 0d | 20 2a 20 74 6f 20 53 6b |he call.| * to Sk| |00000d70| 65 6c 4d 65 6e 75 28 29 | 20 69 73 20 76 69 72 74 |elMenu()| is virt| |00000d80| 75 61 6c 6c 79 20 63 65 | 72 74 61 69 6e 20 74 6f |ually ce|rtain to| |00000d90| 20 73 75 63 63 65 65 64 | 2e 20 20 49 66 20 69 74 | succeed|. If it| |00000da0| 20 64 6f 65 73 6e 27 74 | 2c 0d 20 2a 20 70 72 65 | doesn't|,. * pre| |00000db0| 73 75 6d 61 62 6c 79 20 | 74 68 65 72 65 27 73 20 |sumably |there's | |00000dc0| 6c 69 74 74 6c 65 20 68 | 6f 70 65 20 66 6f 72 20 |little h|ope for | |00000dd0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication | |00000de0| 61 6e 79 77 61 79 2e 0d | 20 2a 2f 0d 0d 70 61 73 |anyway..| */..pas| |00000df0| 63 61 6c 20 76 6f 69 64 | 0d 53 6b 65 6c 41 70 70 |cal void|.SkelApp| |00000e00| 6c 65 20 28 53 74 72 69 | 6e 67 50 74 72 20 69 74 |le (Stri|ngPtr it| |00000e10| 65 6d 73 2c 20 53 6b 65 | 6c 4d 65 6e 75 53 65 6c |ems, Ske|lMenuSel| |00000e20| 65 63 74 50 72 6f 63 50 | 74 72 20 64 6f 53 65 6c |ectProcP|tr doSel| |00000e30| 65 63 74 29 0d 7b 0d 09 | 61 70 70 6c 65 49 44 20 |ect).{..|appleID | |00000e40| 3d 20 73 6b 65 6c 41 70 | 70 6c 65 4d 65 6e 75 49 |= skelAp|pleMenuI| |00000e50| 44 3b 0d 09 2f 2a 20 30 | 32 34 20 3d 20 61 70 70 |D;../* 0|24 = app| |00000e60| 6c 65 20 63 68 61 72 61 | 63 74 65 72 20 2a 2f 0d |le chara|cter */.| |00000e70| 09 61 70 70 6c 65 4d 65 | 6e 75 20 3d 20 4e 65 77 |.appleMe|nu = New| |00000e80| 4d 65 6e 75 20 28 61 70 | 70 6c 65 49 44 2c 20 28 |Menu (ap|pleID, (| |00000e90| 53 74 72 69 6e 67 50 74 | 72 29 20 22 5c 70 5c 30 |StringPt|r) "\p\0| |00000ea0| 32 34 22 29 3b 0d 09 69 | 66 20 28 69 74 65 6d 73 |24");..i|f (items| |00000eb0| 20 21 3d 20 28 53 74 72 | 69 6e 67 50 74 72 29 20 | != (Str|ingPtr) | |00000ec0| 6e 69 6c 20 26 26 20 69 | 74 65 6d 73 5b 30 5d 20 |nil && i|tems[0] | |00000ed0| 3e 20 30 29 0d 09 7b 0d | 09 09 2f 2a 20 61 70 70 |> 0)..{.|../* app| |00000ee0| 6c 69 63 61 74 69 6f 6e | 20 68 61 73 20 6f 77 6e |lication| has own| |00000ef0| 20 69 74 65 6d 73 20 69 | 6e 20 6d 65 6e 75 20 2a | items i|n menu *| |00000f00| 2f 0d 09 09 61 70 70 6c | 65 41 70 70 6c 49 74 65 |/...appl|eApplIte| |00000f10| 6d 73 20 3d 20 74 72 75 | 65 3b 0d 09 09 2f 2a 20 |ms = tru|e;.../* | |00000f20| 61 64 64 20 69 74 65 6d | 73 20 2a 2f 0d 09 09 41 |add item|s */...A| |00000f30| 70 70 65 6e 64 4d 65 6e | 75 20 28 61 70 70 6c 65 |ppendMen|u (apple| |00000f40| 4d 65 6e 75 2c 20 69 74 | 65 6d 73 29 3b 0d 09 09 |Menu, it|ems);...| |00000f50| 2f 2a 20 61 64 64 20 67 | 72 61 79 20 6c 69 6e 65 |/* add g|ray line| |00000f60| 20 2a 2f 0d 09 09 41 70 | 70 65 6e 64 4d 65 6e 75 | */...Ap|pendMenu| |00000f70| 20 28 61 70 70 6c 65 4d | 65 6e 75 2c 20 28 53 74 | (appleM|enu, (St| |00000f80| 72 69 6e 67 50 74 72 29 | 20 22 5c 70 28 2d 22 29 |ringPtr)| "\p(-")| |00000f90| 3b 0d 09 09 61 70 70 6c | 65 53 65 6c 65 63 74 20 |;...appl|eSelect | |00000fa0| 3d 20 64 6f 53 65 6c 65 | 63 74 3b 0d 09 7d 0d 09 |= doSele|ct;..}..| |00000fb0| 41 64 64 52 65 73 4d 65 | 6e 75 20 28 61 70 70 6c |AddResMe|nu (appl| |00000fc0| 65 4d 65 6e 75 2c 20 27 | 44 52 56 52 27 29 3b 09 |eMenu, '|DRVR');.| |00000fd0| 09 2f 2a 20 61 64 64 20 | 64 65 73 6b 20 61 63 63 |./* add |desk acc| |00000fe0| 65 73 73 6f 72 69 65 73 | 20 2a 2f 0d 09 28 76 6f |essories| */..(vo| |00000ff0| 69 64 29 20 53 6b 65 6c | 4d 65 6e 75 20 28 61 70 |id) Skel|Menu (ap| |00001000| 70 6c 65 4d 65 6e 75 2c | 20 44 6f 41 70 70 6c 65 |pleMenu,| DoApple| |00001010| 49 74 65 6d 2c 20 44 6f | 41 70 70 6c 65 43 6c 6f |Item, Do|AppleClo| |00001020| 62 62 65 72 2c 20 66 61 | 6c 73 65 2c 20 66 61 6c |bber, fa|lse, fal| |00001030| 73 65 29 3b 0d 7d 0d 00 | 00 00 00 00 00 00 00 00 |se);.}..|........| |00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001080| 00 00 01 00 00 00 02 9a | 00 00 01 9a 00 00 00 46 |........|.......F| |00001090| 00 00 13 35 17 4d 75 6c | 74 69 54 65 63 68 20 4d |...5.Mul|tiTech M| |000010a0| 75 6c 74 69 4d 6f 64 65 | 6d 56 33 32 02 00 00 00 |ultiMode|mV32....| |000010b0| 0b 53 6b 65 6c 41 70 70 | 6c 65 2e 63 02 00 00 00 |.SkelApp|le.c....| |000010c0| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........| |000010d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010f0| 00 00 a9 9f 75 8e 00 00 | 00 00 00 00 02 e0 00 00 |....u...|........| |00001100| 00 00 95 48 00 01 00 00 | 00 00 00 00 00 00 00 00 |...H....|........| |00001110| 00 00 17 00 00 00 13 35 | 11 4e 65 74 77 6f 72 6b |.......5|.Network| |00001120| 20 45 78 74 65 6e 73 69 | 6f 6e 02 00 00 00 66 65 | Extensi|on....fe| |00001130| 78 74 75 73 65 72 31 80 | 02 3c 00 80 00 00 00 00 |xtuser1.|.<......| |00001140| 13 5c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 01 |.\......|........| |00001150| 79 9a 00 01 80 00 a4 ea | 6d 30 a4 ea 6d 30 00 00 |y.......|m0..m0..| |00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001180| 00 00 01 52 00 28 00 1e | 02 21 01 3c 00 18 00 00 |...R.(..|.!.<....| |00001190| 0d 82 00 00 0d 82 00 00 | 00 6f 00 04 00 09 00 00 |........|.o......| |000011a0| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........| |000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000011e0| 04 00 00 04 00 00 00 48 | 00 48 00 00 00 00 02 db |.......H|.H......| |000011f0| 02 40 ff e7 ff ee 02 ff | 02 52 1f 03 05 28 03 fc |.@......|.R...(..| |00001200| 00 01 00 00 01 2c 01 2c | 00 00 00 00 0b e7 09 60 |.....,.,|.......`| |00001210| 01 2c 00 2d 05 a0 5e ec | 00 26 04 01 01 01 00 18 |.,.-..^.|.&......| |00001220| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........| |00001230| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001250| 00 00 01 00 00 02 41 00 | 00 00 00 04 00 09 00 00 |......A.|........| |00001260| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........| |00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012a0| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012d0| 00 00 00 00 00 00 00 00 | 00 40 00 03 00 00 08 e2 |........|.@......| |000012e0| 00 00 08 f0 0f 44 6f 41 | 70 70 6c 65 43 6c 6f 62 |.....DoA|ppleClob| |000012f0| 62 65 72 00 00 00 04 47 | 00 00 04 52 0b 44 6f 41 |ber....G|...R.DoA| |00001300| 70 70 6c 65 49 74 65 6d | 00 00 0d 76 00 00 0d 7f |ppleItem|...v....| |00001310| 09 53 6b 65 6c 41 70 70 | 6c 65 00 00 01 00 00 00 |.SkelApp|le......| |00001320| 02 9a 00 00 01 9a 00 00 | 00 46 00 3b 9c 74 11 a2 |........|.F.;.t..| |00001330| 00 00 00 1c 00 46 00 01 | 42 42 53 52 00 00 00 12 |.....F..|BBSR....| |00001340| 4d 50 53 52 00 00 00 1e | 01 03 ff ff 00 00 00 00 |MPSR....|........| |00001350| 00 00 00 00 03 ef ff ff | 00 00 01 56 00 00 00 00 |........|...V....| |00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+